package org.dslmagic.data;

import java.util.Collection;
import java.util.Iterator;

public class CollectionGroup extends Group {

	private Collection<?> coll;

	public CollectionGroup(Collection<?> coll) {
		this.coll = coll;
	}

	@Override
	public Iterator<?> iterator() {
		return coll.iterator();
	}

	@Override
	public Object value() {
		return coll;
	}

	@Override
	public Object[] toArray() {
		return coll.toArray();
	}

}
